package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.UserGoodsCommentDAO;
import top.zywork.dos.UserGoodsCommentDO;
import top.zywork.dto.UserGoodsCommentDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.UserGoodsCommentService;

import javax.annotation.PostConstruct;

/**
 * UserGoodsCommentServiceImpl服务接口实现类<br/>
 *
 * 创建于2019-07-27<br/>
 *
 * @author http://zywork.top 危锦辉
 * @version 1.0
 */
@Service(value = "userGoodsCommentService")
public class UserGoodsCommentServiceImpl extends AbstractBaseService implements UserGoodsCommentService {

    private UserGoodsCommentDAO userGoodsCommentDAO;

    @Autowired
    public void setUserGoodsCommentDAO(UserGoodsCommentDAO userGoodsCommentDAO) {
        super.setBaseDAO(userGoodsCommentDAO);
        this.userGoodsCommentDAO = userGoodsCommentDAO;
    }

    @PostConstruct
    public void init() {
        super.init(UserGoodsCommentDO.class, UserGoodsCommentDTO.class);
    }
}
